import { Scene_StoreFile } from "@/scenes/Scene_StoreFile.js";
import { DataManager } from "@/managers/DataManager.js";
import { SceneManager } from "@/managers/SceneManager.js";
import { Scene_Map } from "@/scenes/Scene_Map.js";

export class Scene_Load extends Scene_StoreFile {
    constructor() {
        super();
    }
    attachHnadler(){
        this._storeWindow.setHandler('ok',(item,index)=>{
            if(item){
                try{
                    DataManager.loadGame(index+1);
                    SceneManager.push(Scene_Map);
                }catch(e){
                    
                }
            }
        });
    }
    
}